FROM python:2.7

ADD . /code
WORKDIR /code

#RUN pip install supervisor &&\
#    echo_supervisord_conf > /code/supervisor/supervisord.conf &&\
#    cp -r supervisor/. /etc/supervisor

RUN pip install supervisor &&\
    cp -r supervisor/. /etc/supervisor

RUN pip install -r requirements.txt

CMD ["supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]